$Python = "C:\Python27\python.exe"
$CyctScript = "" # absolute path of your Python script file

$WorkDir = Split-Path $CyctScript

$CyctAction = New-ScheduledTaskAction -Execute $Python  -Argument $CyctScript -WorkingDirectory $WorkDir
$Time = New-ScheduledTaskTrigger -AtLogon
Register-ScheduledTask -TaskName "CyctService" -Action $CyctAction -Trigger $Time
